package com.example.demo3.utils;

import org.apache.commons.beanutils.BeanUtils;

public class BeanConvertUtils {


    public static <T> T convertVOtoBO(Object vo, Class<T> boClass) {
        T bo = null;
        try {
            bo = boClass.newInstance();
            BeanUtils.copyProperties(bo, vo);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return bo;
    }


}
